package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消耗记录对象 t_consume_records
 * 
 * @author ruoyi
 * @date 2024-06-16
 */
public class TConsumeRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    private Long uid;
    @Excel(name = "投手")

    private String userName;

    @Excel(name = "类型 1谷歌 2FB账单户 3FB企业户")
    private Integer mode;

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;


    /** 项目ID */
    private Long projectId;
    @Excel(name = "项目")
    private String proName;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal price;

    /** 消耗 */
    @Excel(name = "消耗")
    private BigDecimal consume;

    /** 进粉数 */
    @Excel(name = "进粉数")
    private BigDecimal num;

    /** 单个成本 */
    @Excel(name = "单个成本")
    private BigDecimal cost;

    /** 消耗截图 */
    @Excel(name = "消耗截图")
    private String consumeImgs;

    /** 公司收益【(售价x进粉量)-消耗】【消耗x代投比例】 */
    @Excel(name = "公司毛利")
    private BigDecimal campanyEarn;

    public BigDecimal getCamEarn() {
        return camEarn;
    }

    public void setCamEarn(BigDecimal camEarn) {
        this.camEarn = camEarn;
    }

    @Excel(name = "公司收益【公司毛利x0.8】")
    private BigDecimal camEarn;
    /** 个人收益 */
    @Excel(name = "个人收益【公司毛利x0.2】")
    private BigDecimal personalEarn;

    @Excel(name = "代投比例")
    private BigDecimal percent;

    @Excel(name = "提成模式")
    private String settlement;

    @Excel(name = "收款")
    private BigDecimal payment;

    public BigDecimal getPayment() {
        return payment;
    }

    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    public BigDecimal getPercent() {
        return percent;
    }

    public void setPercent(BigDecimal percent) {
        this.percent = percent;
    }

    public String getSettlement() {
        return settlement;
    }

    public void setSettlement(String settlement) {
        this.settlement = settlement;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setConsume(BigDecimal consume) 
    {
        this.consume = consume;
    }

    public BigDecimal getConsume() 
    {
        return consume;
    }
    public void setNum(BigDecimal num)
    {
        this.num = num;
    }

    public BigDecimal getNum()
    {
        return num;
    }
    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }
    public void setConsumeImgs(String consumeImgs) 
    {
        this.consumeImgs = consumeImgs;
    }

    public String getConsumeImgs() 
    {
        return consumeImgs;
    }
    public void setCampanyEarn(BigDecimal campanyEarn) 
    {
        this.campanyEarn = campanyEarn;
    }

    public BigDecimal getCampanyEarn() 
    {
        return campanyEarn;
    }
    public void setPersonalEarn(BigDecimal personalEarn) 
    {
        this.personalEarn = personalEarn;
    }

    public BigDecimal getPersonalEarn() 
    {
        return personalEarn;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }


    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("time", getTime())
            .append("projectId", getProjectId())
            .append("price", getPrice())
            .append("consume", getConsume())
            .append("num", getNum())
            .append("cost", getCost())
            .append("consumeImgs", getConsumeImgs())
            .append("campanyEarn", getCampanyEarn())
            .append("personalEarn", getPersonalEarn())
            .append("createTime", getCreateTime())
            .toString();
    }
}
